<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>编辑分类</title>
	<script type='text/javascript' src='http://localhost/yc/hd_group_stu/hdphp/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>
<link href='http://localhost/yc/hd_group_stu/hdphp/hdphp/../hdjs/css/hdjs.css' rel='stylesheet' media='screen'>
<script src='http://localhost/yc/hd_group_stu/hdphp/hdphp/../hdjs/js/hdjs.js'></script>
<script src='http://localhost/yc/hd_group_stu/hdphp/hdphp/../hdjs/js/slide.js'></script>
<script src='http://localhost/yc/hd_group_stu/hdphp/hdphp/../hdjs/org/cal/lhgcalendar.min.js'></script>
<script type='text/javascript'>
HOST = '<?php echo $GLOBALS['user']['HOST'];?>';
ROOT = '<?php echo $GLOBALS['user']['ROOT'];?>';
WEB = '<?php echo $GLOBALS['user']['WEB'];?>';
URL = '<?php echo $GLOBALS['user']['URL'];?>';
HDPHP = '<?php echo $GLOBALS['user']['HDPHP'];?>';
HDPHPDATA = '<?php echo $GLOBALS['user']['HDPHPDATA'];?>';
HDPHPTPL = '<?php echo $GLOBALS['user']['HDPHPTPL'];?>';
HDPHPEXTEND = '<?php echo $GLOBALS['user']['HDPHPEXTEND'];?>';
APP = '<?php echo $GLOBALS['user']['APP'];?>';
CONTROL = '<?php echo $GLOBALS['user']['CONTROL'];?>';
METH = '<?php echo $GLOBALS['user']['METH'];?>';
GROUP = '<?php echo $GLOBALS['user']['GROUP'];?>';
TPL = '<?php echo $GLOBALS['user']['TPL'];?>';
CONTROLTPL = '<?php echo $GLOBALS['user']['CONTROLTPL'];?>';
STATIC = '<?php echo $GLOBALS['user']['STATIC'];?>';
PUBLIC = '<?php echo $GLOBALS['user']['PUBLIC'];?>';
HISTORY = '<?php echo $GLOBALS['user']['HISTORY'];?>';
HTTPREFERER = '<?php echo $GLOBALS['user']['HTTPREFERER'];?>';
</script>
	<link href='http://localhost/yc/hd_group_stu/hdphp/hdphp/Extend/Org/bootstrap/css/bootstrap.min.css' rel='stylesheet' media='screen'>
<script src='http://localhost/yc/hd_group_stu/hdphp/hdphp/Extend/Org/bootstrap/js/bootstrap.min.js'></script>
                <!--[if lte IE 6]>
                <link rel="stylesheet" type="text/css" href="http://localhost/yc/hd_group_stu/hdphp/hdphp/Extend/Org/bootstrap/ie6/css/bootstrap-ie6.css">
                <![endif]-->
                <!--[if lt IE 9]>
                <script src="http://localhost/yc/hd_group_stu/hdphp/hdphp/Extend/Org/bootstrap/js/html5shiv.min.js"></script>
                <script src="http://localhost/yc/hd_group_stu/hdphp/hdphp/Extend/Org/bootstrap/js/respond.min.js"></script>
                <![endif]-->
	<link type="text/css" rel="stylesheet" href="http://localhost/yc/hd_group_stu/./Hdgroup/Hdgroup/Admin/Tpl/Public/Css/public.css"/>
</head>
<body>

	<form action="" method="post"  class='hd-form'>
	<div class="wrap">
	<div class="menu_list">
		<ul>
			<li><a href="<?php echo U('Category/index');?>"  > 商品分类列表 </a></li>
			<li><a href="javascript:;" class="action"> 编辑商品分类 </a></li>
			<li><a href="<?php echo U('Category/update_cache');?>"> 更新商品分类缓存 </a></li>
		</ul>
	</div>
	<table class='table table-striped table-bordered '>
		<tbody>
			<tr>
				<td class="w100">上级分类</td>
				<td>
					<select name="pid" >
						<option value="0">一级分类</option>
						<?php if(is_array($category)):?><?php  foreach($category as $v){ ?>
							<option value="<?php echo $v['cid'];?>" <?php if($data['pid'] == $v['cid']){?>selected='selected'<?php }?>><?php echo $v['_name'];?></option>
						<?php }?><?php endif;?>
					</select>
				</td>
			</tr>
			<tr>
				<td class="w100">分类名称</td>
				<td>
					<input type="text" name="cname"  class='w200' value="<?php echo $data['cname'];?>" />
				</td>
			</tr>

			<tr>
				<td>分类标题</td>
				<td>
					<textarea name="title" class='w500 h100'><?php echo $data['title'];?></textarea>
				</td>
			</tr>
			<tr>
				<td>分类关键字</td>
				<td>
					<textarea name="keywords" class='w500 h100'><?php echo $data['keywords'];?></textarea>
				</td>
			</tr>
			<tr>
				<td>分类描述</td>
				<td>
					<textarea name="description" class='w500 h100'><?php echo $data['description'];?></textarea>
				</td>
			</tr>
			<tr>
				<td>分类排序</td>
				<td>
					<input name="sort" type="text" class='w200' value="<?php echo $data['sort'];?>" />
				</td>
			</tr>
			<tr>
				<td>是否显示</td>
				<td>
					<label>
						<input <?php if($data['display']){?>checked='checked'<?php }?>  type="radio" name="display" value="1"/>	
						<span>显示</span>
					</label>
					<label>
						<input <?php if(!$data['display']){?>checked='checked'<?php }?> type="radio" name="display" value="0"/>	
						<span>隐藏</span>
					</label>
				</td>
			</tr>
		</tbody>
	</table>
	</div>
	<div class='position-bottom'>
		<input type="submit" class='hd-cancel' value="编辑" />
		<input type="hidden" name="cid" value="<?php echo $_GET['cid'];?>" />
	</div>
	</form>
</body>
</html>